package menu;

import java.awt.BorderLayout;
import java.awt.CardLayout;
import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.Graphics;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.Insets;
import java.awt.Label;
import java.awt.Rectangle;
import java.awt.TextArea;
import java.awt.TextField;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JSplitPane;
import javax.swing.JTabbedPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.border.EmptyBorder;
import java.awt.Toolkit;

public class menu extends JFrame {

	private JPanel contentPane;
	private JPanel p_1 = null, p_2 = null, p_3 = null, p_3_1 = null,
			p_4 = null, p_5 = null;
	private JPanel panel_1 = null;
	private TextArea p_3ta1 = null, p_3ta2 = null;
	private JButton p_3btn1 = null, p_3btn2 = null;
	private JTextField textField_2;
	private JTextField tab_panel_1_textField_3;
	private JTextField tab_panel_2_textField_3;
	private JTextField p_1_textField_1;
	private ImageIcon backgroud = null;
	private JLabel imageLabel = null;
	private JTextField textField_3;
	private JTextField textField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					menu frame = new menu();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public menu() {
		setTitle("基于微博文本的大数据分析");
		setIconImage(Toolkit.getDefaultToolkit().getImage("Image\\16_16_Spark.png"));
		setResizable(false);
		setFont(null);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 800, 500);
		final CardLayout c = new CardLayout(5, 5);
		panel_1 = new JPanel();
		p_1 = new JPanel();
		
//		p_2 = new JPanel();
		
		p_2 = new JPanel() {
			 public void paintComponent(Graphics g) {
				  super.paintComponent(g);
				  ImageIcon img = new ImageIcon("Image\\灰色1.png");
				  g.drawImage(img.getImage(), 0, 0, null);
				 }
				};
		p_1 = new JPanel(){
			 public void paintComponent(Graphics g) {
				  super.paintComponent(g);
				  ImageIcon img = new ImageIcon("Image\\灰色1.png");
				  g.drawImage(img.getImage(), 0, 0, null);
				 }
				};
		p_2 = new JPanel() {
			public void paintComponent(Graphics g) {
				super.paintComponent(g);
				ImageIcon img = new ImageIcon("Image\\灰色1.png");
				g.drawImage(img.getImage(), 0, 0, null);
			}
		};
		
		
		p_3 = new JPanel() {
			 public void paintComponent(Graphics g) {
				  super.paintComponent(g);
				  ImageIcon img = new ImageIcon("Image\\灰色1.png");
				  g.drawImage(img.getImage(), 0, 0, null);
				 }
				};
				
		p_3 = new JPanel() {
			public void paintComponent(Graphics g) {
				super.paintComponent(g);
				ImageIcon img = new ImageIcon("Image\\灰色1.png");
				g.drawImage(img.getImage(), 0, 0, null);
			}
		};
		p_3 = new JPanel(new BorderLayout());
		p_3_1 = new JPanel() {
			public void paintComponent(Graphics g) {
				super.paintComponent(g);
				ImageIcon img = new ImageIcon("Image\\灰色1.png");
				g.drawImage(img.getImage(), 0, 0, null);
			}
		};
		p_3ta1 = new TextArea();
		
		
		GridBagLayout gbl_p_3_1 = new GridBagLayout();
		gbl_p_3_1.columnWidths = new int[] { 248, 0, 69, 81, 0, 0 };
		gbl_p_3_1.rowHeights = new int[] { 23, 0, 0 };
		gbl_p_3_1.columnWeights = new double[] { 0.0, 0.0, 0.0, 0.0, 0.0,
				Double.MIN_VALUE };
		gbl_p_3_1.rowWeights = new double[] { 0.0, 0.0, Double.MIN_VALUE };
		p_3_1.setLayout(gbl_p_3_1);
		p_3.add(BorderLayout.NORTH, p_3ta1);
		p_3.add(BorderLayout.CENTER, p_3_1);
		p_3btn1 = new JButton("打开文件路径");

		GridBagConstraints gbc_p_3btn1 = new GridBagConstraints();
		gbc_p_3btn1.anchor = GridBagConstraints.NORTHWEST;
		gbc_p_3btn1.insets = new Insets(0, 0, 0, 5);
		gbc_p_3btn1.gridx = 1;
		gbc_p_3btn1.gridy = 1;
		gbc_p_3btn1.gridwidth = 2;
		p_3_1.add(p_3btn1, gbc_p_3btn1);
		p_3btn2 = new JButton("普通分词");
		GridBagConstraints gbc_p_3btn2 = new GridBagConstraints();
		gbc_p_3btn2.insets = new Insets(0, 0, 0, 5);
		gbc_p_3btn2.anchor = GridBagConstraints.NORTHWEST;
		gbc_p_3btn2.gridx = 3;
		gbc_p_3btn2.gridy = 1;
		p_3_1.add(p_3btn2, gbc_p_3btn2);
		p_3ta2 = new TextArea();
		p_3.add(BorderLayout.SOUTH, p_3ta2);

		p_4 = new JPanel() {
			public void paintComponent(Graphics g) {
				super.paintComponent(g);
				ImageIcon img = new ImageIcon("Image\\灰色1.png");
				g.drawImage(img.getImage(), 0, 0, null);
			}
		};
		p_4.setBounds(new Rectangle(0, 0, 2, 2));

		p_5 = new JPanel() {
			public void paintComponent(Graphics g) {
				super.paintComponent(g);
				ImageIcon img = new ImageIcon("Image\\灰色1.png");
				g.drawImage(img.getImage(), 0, 0, null);
			}
		};

		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);

		GridBagLayout gbl_contentPane = new GridBagLayout();
		gbl_contentPane.columnWidths = new int[] { 480, 0 };
		gbl_contentPane.rowHeights = new int[] { 0, 0 };
		gbl_contentPane.columnWeights = new double[] { 1.0, Double.MIN_VALUE };
		gbl_contentPane.rowWeights = new double[] { 1.0, Double.MIN_VALUE };
		contentPane.setLayout(gbl_contentPane);

		JSplitPane splitPane = new JSplitPane();
		GridBagConstraints gbc_splitPane = new GridBagConstraints();
		gbc_splitPane.fill = GridBagConstraints.BOTH;
		gbc_splitPane.gridx = 0;
		gbc_splitPane.gridy = 0;
		contentPane.add(splitPane, gbc_splitPane);

		JPanel panel = new JPanel() {
			public void paintComponent(Graphics g) {
				super.paintComponent(g);
				ImageIcon img = new ImageIcon("Image\\灰色1.png");
				g.drawImage(img.getImage(), 0, 0, null);
			}
		};
		splitPane.setLeftComponent(panel);
		GridBagLayout gbl_panel = new GridBagLayout();
		gbl_panel.columnWidths = new int[] { 105, 0 };
		gbl_panel.rowHeights = new int[] { 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
				0, 0, 0, 0 };
		gbl_panel.columnWeights = new double[] { 0.0, Double.MIN_VALUE };
		gbl_panel.rowWeights = new double[] { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
				0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE };
		panel.setLayout(gbl_panel);

		JButton button = new JButton("去除冗余信息");
		button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				c.show(panel_1, "p1");
			}
		});
		GridBagConstraints gbc_button = new GridBagConstraints();
		gbc_button.insets = new Insets(0, 0, 5, 0);
		gbc_button.anchor = GridBagConstraints.NORTHWEST;
		gbc_button.gridx = 0;
		gbc_button.gridy = 2;
		panel.add(button, gbc_button);

		JButton btnNewButton = new JButton("专业词典导入");
		gbc_button.insets = new Insets(0, 0, 5, 0);
		btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				c.show(panel_1, "p5");
			}
		});

		JButton button_2 = new JButton("分词");
		button_2.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				c.show(panel_1, "p3");
			}
		});

		JButton button_1 = new JButton("用户分类统计");
		button_1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				c.show(panel_1, "p2");
			}
		});
		GridBagConstraints gbc_button_1 = new GridBagConstraints();
		gbc_button_1.insets = new Insets(0, 0, 5, 0);
		gbc_button_1.gridx = 0;
		gbc_button_1.gridy = 5;
		panel.add(button_1, gbc_button_1);
		GridBagConstraints gbc_button_2 = new GridBagConstraints();
		gbc_button_2.insets = new Insets(0, 0, 5, 0);
		gbc_button_2.gridx = 0;
		gbc_button_2.gridy = 8;
		gbc_button_2.fill = GridBagConstraints.BOTH;
		panel.add(button_2, gbc_button_2);

		JButton button_3 = new JButton("词频统计");
		button_3.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				c.show(panel_1, "p4");
			}
		});
		GridBagConstraints gbc_button_3 = new GridBagConstraints();
		gbc_button_3.insets = new Insets(0, 0, 5, 0);
		gbc_button_3.gridx = 0;
		gbc_button_3.gridy = 11;
		gbc_button_3.fill = GridBagConstraints.BOTH;
		panel.add(button_3, gbc_button_3);
		GridBagConstraints gbc_btnNewButton = new GridBagConstraints();
		gbc_btnNewButton.gridx = 0;
		gbc_btnNewButton.gridy = 14;
		panel.add(btnNewButton, gbc_btnNewButton);

		splitPane.setRightComponent(panel_1);

		panel_1.setLayout(c);
		panel_1.add(p_1, "p1");

		JPanel p_1_panel_1 = new JPanel();
		p_1_panel_1.setLayout(new GridLayout(3, 1));

		JLabel p_1_label_1 = new JLabel("填写冗余字段信息(按行编写):");

		JScrollPane p_1_scrollPane_1 = new JScrollPane();

		JButton p_1_button_6 = new JButton("开始");

		JLabel p_1_label_2 = new JLabel("处理结果存储路径 : ");

		p_1_textField_1 = new JTextField(50);
		p_1_textField_1.setColumns(10);
		GroupLayout gl_p_1 = new GroupLayout(p_1);
		gl_p_1.setHorizontalGroup(gl_p_1
				.createParallelGroup(Alignment.LEADING)
				.addGroup(
						gl_p_1.createSequentialGroup()
								.addGroup(
										gl_p_1.createParallelGroup(
												Alignment.LEADING)
												.addGroup(
														gl_p_1.createSequentialGroup()
																.addGap(326)
																.addComponent(
																		p_1_panel_1,
																		GroupLayout.PREFERRED_SIZE,
																		GroupLayout.DEFAULT_SIZE,
																		GroupLayout.PREFERRED_SIZE))
												.addGroup(
														gl_p_1.createSequentialGroup()
																.addGap(37)
																.addGroup(
																		gl_p_1.createParallelGroup(
																				Alignment.LEADING)
																				.addGroup(
																						gl_p_1.createSequentialGroup()
																								.addComponent(
																										p_1_scrollPane_1,
																										GroupLayout.PREFERRED_SIZE,
																										433,
																										GroupLayout.PREFERRED_SIZE)
																								.addGap(40)
																								.addComponent(
																										p_1_button_6))
																				.addComponent(
																						p_1_label_1)
																				.addComponent(
																						p_1_textField_1,
																						GroupLayout.PREFERRED_SIZE,
																						318,
																						GroupLayout.PREFERRED_SIZE)))
												.addGroup(
														gl_p_1.createSequentialGroup()
																.addGap(51)
																.addComponent(
																		p_1_label_2)))
								.addContainerGap(85, Short.MAX_VALUE)));
		gl_p_1.setVerticalGroup(gl_p_1
				.createParallelGroup(Alignment.LEADING)
				.addGroup(
						gl_p_1.createSequentialGroup()
								.addGroup(
										gl_p_1.createParallelGroup(
												Alignment.LEADING)
												.addGroup(
														gl_p_1.createSequentialGroup()
																.addGap(5)
																.addComponent(
																		p_1_panel_1,
																		GroupLayout.PREFERRED_SIZE,
																		GroupLayout.DEFAULT_SIZE,
																		GroupLayout.PREFERRED_SIZE)
																.addGap(29)
																.addComponent(
																		p_1_label_1)
																.addGap(18)
																.addComponent(
																		p_1_scrollPane_1,
																		GroupLayout.PREFERRED_SIZE,
																		261,
																		GroupLayout.PREFERRED_SIZE))
												.addGroup(
														gl_p_1.createSequentialGroup()
																.addGap(185)
																.addComponent(
																		p_1_button_6)))
								.addGap(31)
								.addComponent(p_1_label_2)
								.addGap(18)
								.addComponent(p_1_textField_1,
										GroupLayout.PREFERRED_SIZE, 29,
										GroupLayout.PREFERRED_SIZE)
								.addContainerGap(19, Short.MAX_VALUE)));

		JTextArea textArea_1 = new JTextArea(20, 20);
		textArea_1.setLineWrap(true);
		p_1_scrollPane_1.setViewportView(textArea_1);
		p_1.setLayout(gl_p_1);

		panel_1.add(p_2, "p2");
		p_2.setLayout(new BorderLayout(0, 0));
		JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP,
				JTabbedPane.SCROLL_TAB_LAYOUT);
		tabbedPane.setPreferredSize(new Dimension(600, 400));
		tabbedPane.setBounds(new Rectangle(12, 12, 200, 200));
		p_2.add(BorderLayout.CENTER,tabbedPane);

		JPanel tab_panel_1 = new JPanel() {
			public void paintComponent(Graphics g) {
				super.paintComponent(g);
				ImageIcon img = new ImageIcon("Image\\灰色1.png");
				g.drawImage(img.getImage(), 0, 0, null);
			}
		};
		tabbedPane.addTab("分类", null, tab_panel_1, null);
		GridBagLayout gbl_tab_panel_1 = new GridBagLayout();
		gbl_tab_panel_1.columnWidths = new int[] { 0, 0, 0, 0, 0, 0, 0, 0, 0,
				0, 0, 0, 0, 0 };
		gbl_tab_panel_1.rowHeights = new int[] { 0, 0, 0, 0, 0, 0, 0 };
		gbl_tab_panel_1.columnWeights = new double[] { 0.0, 1.0, 0.0, 1.0, 0.0,
				0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE };
		gbl_tab_panel_1.rowWeights = new double[] { 0.0, 0.0, 0.0, 0.0, 0.0,
				1.0, Double.MIN_VALUE };
		tab_panel_1.setLayout(gbl_tab_panel_1);

		JLabel label_14 = new JLabel("要分类的文本路径:");
		GridBagConstraints gbc_label_14 = new GridBagConstraints();
		gbc_label_14.insets = new Insets(0, 0, 5, 5);
		gbc_label_14.gridx = 0;
		gbc_label_14.gridy = 1;
		tab_panel_1.add(label_14, gbc_label_14);

		tab_panel_1_textField_3 = new JTextField(20);
		tab_panel_1_textField_3.setPreferredSize(new Dimension(2, 21));
		GridBagConstraints gbc_tab_panel_1_textField_3 = new GridBagConstraints();
		gbc_tab_panel_1_textField_3.insets = new Insets(0, 0, 5, 5);
		gbc_tab_panel_1_textField_3.fill = GridBagConstraints.HORIZONTAL;
		gbc_tab_panel_1_textField_3.gridx = 1;
		gbc_tab_panel_1_textField_3.gridy = 1;
		tab_panel_1.add(tab_panel_1_textField_3, gbc_tab_panel_1_textField_3);
		tab_panel_1_textField_3.setColumns(10);

		JButton tab_panel_1_button_5 = new JButton("选择路径");
		GridBagConstraints gbc_tab_panel_1_button_5 = new GridBagConstraints();
		gbc_tab_panel_1_button_5.insets = new Insets(0, 0, 5, 5);
		gbc_tab_panel_1_button_5.gridx = 11;
		gbc_tab_panel_1_button_5.gridy = 1;
		tab_panel_1.add(tab_panel_1_button_5, gbc_tab_panel_1_button_5);

		JButton tab_panel_1_button_6 = new JButton("用户分类");
		GridBagConstraints gbc_tab_panel_1_button_6 = new GridBagConstraints();
		gbc_tab_panel_1_button_6.insets = new Insets(0, 0, 5, 0);
		gbc_tab_panel_1_button_6.gridx = 12;
		gbc_tab_panel_1_button_6.gridy = 1;
		tab_panel_1.add(tab_panel_1_button_6, gbc_tab_panel_1_button_6);

		JLabel label_15 = new JLabel("            ");
		GridBagConstraints gbc_label_15 = new GridBagConstraints();
		gbc_label_15.insets = new Insets(0, 0, 5, 5);
		gbc_label_15.gridx = 1;
		gbc_label_15.gridy = 3;
		tab_panel_1.add(label_15, gbc_label_15);

		JLabel tab_panel_1_label_16 = new JLabel("用户类型显示 : ");
		GridBagConstraints gbc_tab_panel_1_label_16 = new GridBagConstraints();
		gbc_tab_panel_1_label_16.insets = new Insets(0, 0, 5, 5);
		gbc_tab_panel_1_label_16.gridx = 0;
		gbc_tab_panel_1_label_16.gridy = 4;
		tab_panel_1.add(tab_panel_1_label_16, gbc_tab_panel_1_label_16);

		JScrollPane scrollPane_1 = new JScrollPane();
		scrollPane_1.setPreferredSize(new Dimension(20, 20));
		GridBagConstraints gbc_scrollPane_1 = new GridBagConstraints();
		gbc_scrollPane_1.insets = new Insets(0, 0, 0, 5);
		gbc_scrollPane_1.fill = GridBagConstraints.BOTH;
		gbc_scrollPane_1.gridx = 1;
		gbc_scrollPane_1.gridy = 5;
		gbc_scrollPane_1.gridwidth = 6;
		tab_panel_1.add(scrollPane_1, gbc_scrollPane_1);

		JTextArea tab_panel_1_textArea_1 = new JTextArea(20, 20);
		tab_panel_1_textArea_1.setLineWrap(true);
		scrollPane_1.setViewportView(tab_panel_1_textArea_1);

		JPanel tab_panel_2 = new JPanel() {
			public void paintComponent(Graphics g) {
				super.paintComponent(g);
				ImageIcon img = new ImageIcon("Image\\灰色1.png");
				g.drawImage(img.getImage(), 0, 0, null);
			}
		};
		tabbedPane.addTab("类别查询", null, tab_panel_2, null);
		GridBagLayout gbl_tab_panel_2 = new GridBagLayout();
		gbl_tab_panel_2.columnWidths = new int[] { 0, 0, 0, 0, 0, 0, 0, 0, 0,
				0, 0, 0, 0, 0, 0 };
		gbl_tab_panel_2.rowHeights = new int[] { 0, 0, 0, 0, 0, 0, 0 };
		gbl_tab_panel_2.columnWeights = new double[] { 0.0, 1.0, 1.0, 0.0, 0.0,
				0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE };
		gbl_tab_panel_2.rowWeights = new double[] { 0.0, 0.0, 0.0, 0.0, 0.0,
				1.0, Double.MIN_VALUE };
		tab_panel_2.setLayout(gbl_tab_panel_2);

		JLabel label_17 = new JLabel("              ");
		GridBagConstraints gbc_label_17 = new GridBagConstraints();
		gbc_label_17.insets = new Insets(0, 0, 5, 5);
		gbc_label_17.gridx = 1;
		gbc_label_17.gridy = 0;
		tab_panel_2.add(label_17, gbc_label_17);

		JLabel label_16 = new JLabel("查询用户类型:");
		GridBagConstraints gbc_label_16 = new GridBagConstraints();
		gbc_label_16.anchor = GridBagConstraints.EAST;
		gbc_label_16.insets = new Insets(0, 0, 5, 5);
		gbc_label_16.gridx = 0;
		gbc_label_16.gridy = 1;
		tab_panel_2.add(label_16, gbc_label_16);

		tab_panel_2_textField_3 = new JTextField(20);
		GridBagConstraints gbc_tab_panel_2_textField_3 = new GridBagConstraints();
		gbc_tab_panel_2_textField_3.insets = new Insets(0, 0, 5, 5);
		gbc_tab_panel_2_textField_3.fill = GridBagConstraints.HORIZONTAL;
		gbc_tab_panel_2_textField_3.gridx = 1;
		gbc_tab_panel_2_textField_3.gridy = 1;
		tab_panel_2.add(tab_panel_2_textField_3, gbc_tab_panel_2_textField_3);
		tab_panel_2_textField_3.setColumns(10);

		JButton button_5 = new JButton("搜索");
		GridBagConstraints gbc_button_5 = new GridBagConstraints();
		gbc_button_5.insets = new Insets(0, 0, 5, 5);
		gbc_button_5.gridx = 3;
		gbc_button_5.gridy = 1;
		tab_panel_2.add(button_5, gbc_button_5);

		JLabel label_18 = new JLabel("               ");
		GridBagConstraints gbc_label_18 = new GridBagConstraints();
		gbc_label_18.insets = new Insets(0, 0, 5, 0);
		gbc_label_18.gridx = 13;
		gbc_label_18.gridy = 1;
		tab_panel_2.add(label_18, gbc_label_18);

		JLabel label_19 = new JLabel("               ");
		GridBagConstraints gbc_label_19 = new GridBagConstraints();
		gbc_label_19.insets = new Insets(0, 0, 5, 5);
		gbc_label_19.gridx = 1;
		gbc_label_19.gridy = 2;
		tab_panel_2.add(label_19, gbc_label_19);

		JLabel label_20 = new JLabel("                ");
		GridBagConstraints gbc_label_20 = new GridBagConstraints();
		gbc_label_20.insets = new Insets(0, 0, 5, 5);
		gbc_label_20.gridx = 1;
		gbc_label_20.gridy = 3;
		tab_panel_2.add(label_20, gbc_label_20);

		JLabel lblid = new JLabel("用户ID显示 : ");
		GridBagConstraints gbc_lblid = new GridBagConstraints();
		gbc_lblid.insets = new Insets(0, 0, 5, 5);
		gbc_lblid.gridx = 0;
		gbc_lblid.gridy = 4;
		tab_panel_2.add(lblid, gbc_lblid);

		JScrollPane tab_panel_2_scrollPane_2 = new JScrollPane();
		tab_panel_2_scrollPane_2.setPreferredSize(new Dimension(10, 10));
		GridBagConstraints gbc_tab_panel_2_scrollPane_2 = new GridBagConstraints();
		gbc_tab_panel_2_scrollPane_2.insets = new Insets(0, 0, 0, 5);
		gbc_tab_panel_2_scrollPane_2.fill = GridBagConstraints.BOTH;
		gbc_tab_panel_2_scrollPane_2.gridx = 1;
		gbc_tab_panel_2_scrollPane_2.gridy = 5;
		gbc_tab_panel_2_scrollPane_2.gridwidth = 6;
		tab_panel_2.add(tab_panel_2_scrollPane_2, gbc_tab_panel_2_scrollPane_2);

		JTextArea tab_panel_2_textArea_1 = new JTextArea(20, 20);
		tab_panel_2_textArea_1.setLineWrap(true);
		tab_panel_2_scrollPane_2.setViewportView(tab_panel_2_textArea_1);

		panel_1.add(p_3, "p3");
		panel_1.add(p_4, "p4");
		GridBagLayout gbl_p_4 = new GridBagLayout();
		gbl_p_4.columnWidths = new int[] { 0, 0, 0, 0 };
		gbl_p_4.rowHeights = new int[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
		gbl_p_4.columnWeights = new double[] { 0.0, 0.0, 1.0, Double.MIN_VALUE };
		gbl_p_4.rowWeights = new double[] { 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0,
				0.0, 0.0, Double.MIN_VALUE };
		p_4.setLayout(gbl_p_4);

		JLabel label_12 = new JLabel(
				"                                                                                                                                             ");
		GridBagConstraints gbc_label_12 = new GridBagConstraints();
		gbc_label_12.insets = new Insets(0, 0, 5, 0);
		gbc_label_12.gridx = 2;
		gbc_label_12.gridy = 0;
		p_4.add(label_12, gbc_label_12);

		JLabel label_11 = new JLabel(
				"                                                                                                               ");
		GridBagConstraints gbc_label_11 = new GridBagConstraints();
		gbc_label_11.insets = new Insets(0, 0, 5, 0);
		gbc_label_11.gridx = 2;
		gbc_label_11.gridy = 1;
		p_4.add(label_11, gbc_label_11);

		JLabel label_10 = new JLabel("导入文本的路径 : ");
		GridBagConstraints gbc_label_10 = new GridBagConstraints();
		gbc_label_10.anchor = GridBagConstraints.EAST;
		gbc_label_10.insets = new Insets(0, 0, 5, 5);
		gbc_label_10.gridx = 1;
		gbc_label_10.gridy = 3;
		p_4.add(label_10, gbc_label_10);

		textField_2 = new JTextField(50);
		GridBagConstraints gbc_textField_2 = new GridBagConstraints();
		gbc_textField_2.insets = new Insets(0, 0, 5, 0);
		gbc_textField_2.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField_2.gridx = 2;
		gbc_textField_2.gridy = 3;
		p_4.add(textField_2, gbc_textField_2);
		textField_2.setColumns(10);

		JButton button_4 = new JButton("分词");
		GridBagConstraints gbc_button_4 = new GridBagConstraints();
		gbc_button_4.insets = new Insets(0, 0, 5, 0);
		gbc_button_4.gridx = 2;
		gbc_button_4.gridy = 4;
		p_4.add(button_4, gbc_button_4);

		JLabel label_13 = new JLabel("词频统计结果 :");
		GridBagConstraints gbc_label_13 = new GridBagConstraints();
		gbc_label_13.insets = new Insets(0, 0, 5, 5);
		gbc_label_13.gridx = 1;
		gbc_label_13.gridy = 5;
		p_4.add(label_13, gbc_label_13);

		JPanel panel_2 = new JPanel();
		GridBagConstraints gbc_panel_2 = new GridBagConstraints();
		gbc_panel_2.insets = new Insets(0, 0, 5, 0);
		gbc_panel_2.fill = GridBagConstraints.BOTH;
		gbc_panel_2.gridx = 2;
		gbc_panel_2.gridy = 5;
		p_4.add(panel_2, gbc_panel_2);
		panel_2.setLayout(new BorderLayout(0, 0));

		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(new Rectangle(120, 40, 200, 60));
		panel_2.add(scrollPane, BorderLayout.CENTER);

		JTextArea textArea = new JTextArea(20, 20);
		textArea.setLineWrap(true);
		scrollPane.setViewportView(textArea);
		
		JLabel label_21 = new JLabel("结果存储地址 :");
		GridBagConstraints gbc_label_21 = new GridBagConstraints();
		gbc_label_21.anchor = GridBagConstraints.EAST;
		gbc_label_21.insets = new Insets(0, 0, 5, 5);
		gbc_label_21.gridx = 1;
		gbc_label_21.gridy = 7;
		p_4.add(label_21, gbc_label_21);
		
		textField_3 = new JTextField(20);
		GridBagConstraints gbc_textField_3 = new GridBagConstraints();
		gbc_textField_3.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField_3.insets = new Insets(0, 0, 5, 0);
		gbc_textField_3.gridx = 2;
		gbc_textField_3.gridy = 7;
		p_4.add(textField_3, gbc_textField_3);
		textField_3.setColumns(10);
		
		JButton button_6 = new JButton("确定");
		GridBagConstraints gbc_button_6 = new GridBagConstraints();
		gbc_button_6.gridx = 2;
		gbc_button_6.gridy = 8;
		p_4.add(button_6, gbc_button_6);
		panel_1.add(p_5, "p5");

		GridBagLayout gbl_p_5 = new GridBagLayout();
		gbl_p_5.columnWidths = new int[] { 0, 0, 0, 0, 0 };
		gbl_p_5.rowHeights = new int[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
				0 };
		gbl_p_5.columnWeights = new double[] { 0.0, 1.0, 0.0, 1.0, Double.MIN_VALUE };
		gbl_p_5.rowWeights = new double[] { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
				0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE };
		p_5.setLayout(gbl_p_5);

		JLabel label_2 = new JLabel(" ");
		GridBagConstraints gbc_label_2 = new GridBagConstraints();
		gbc_label_2.insets = new Insets(0, 0, 5, 5);
		gbc_label_2.gridx = 1;
		gbc_label_2.gridy = 3;
		p_5.add(label_2, gbc_label_2);

		JLabel label = new JLabel(" ");
		GridBagConstraints gbc_label = new GridBagConstraints();
		gbc_label.insets = new Insets(0, 0, 5, 5);
		gbc_label.gridx = 1;
		gbc_label.gridy = 4;
		p_5.add(label, gbc_label);

		JLabel label_9 = new JLabel("导入词典的文本路径");
		GridBagConstraints gbc_label_9 = new GridBagConstraints();
		gbc_label_9.insets = new Insets(0, 0, 5, 5);
		gbc_label_9.gridx = 1;
		gbc_label_9.gridy = 5;
		p_5.add(label_9, gbc_label_9);

		JLabel label_1 = new JLabel(" ");
		GridBagConstraints gbc_label_1 = new GridBagConstraints();
		gbc_label_1.insets = new Insets(0, 0, 5, 5);
		gbc_label_1.gridx = 3;
		gbc_label_1.gridy = 5;
		p_5.add(label_1, gbc_label_1);
		
		textField = new JTextField(20);
		GridBagConstraints gbc_textField = new GridBagConstraints();
		gbc_textField.insets = new Insets(0, 0, 5, 5);
		gbc_textField.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField.gridx = 1;
		gbc_textField.gridy = 6;
		p_5.add(textField, gbc_textField);
		textField.setColumns(10);

		JLabel label_3 = new JLabel("");
		GridBagConstraints gbc_label_3 = new GridBagConstraints();
		gbc_label_3.insets = new Insets(0, 0, 5, 5);
		gbc_label_3.gridx = 1;
		gbc_label_3.gridy = 7;
		p_5.add(label_3, gbc_label_3);

		JLabel label_6 = new JLabel("              ");
		GridBagConstraints gbc_label_6 = new GridBagConstraints();
		gbc_label_6.insets = new Insets(0, 0, 5, 5);
		gbc_label_6.gridx = 1;
		gbc_label_6.gridy = 8;
		p_5.add(label_6, gbc_label_6);

		JButton btnNewButton_1 = new JButton("导入用户词典");
		GridBagConstraints gbc_btnNewButton_1 = new GridBagConstraints();
		gbc_btnNewButton_1.insets = new Insets(0, 0, 5, 5);
		gbc_btnNewButton_1.gridx = 1;
		gbc_btnNewButton_1.gridy = 9;
		p_5.add(btnNewButton_1, gbc_btnNewButton_1);
		
				JLabel label_4 = new JLabel("导入词语的个数:");
				GridBagConstraints gbc_label_4 = new GridBagConstraints();
				gbc_label_4.insets = new Insets(0, 0, 5, 5);
				gbc_label_4.gridx = 2;
				gbc_label_4.gridy = 9;
				p_5.add(label_4, gbc_label_4);

		JLabel label_5 = new JLabel("      ");
		GridBagConstraints gbc_label_5 = new GridBagConstraints();
		gbc_label_5.insets = new Insets(0, 0, 5, 0);
		gbc_label_5.gridx = 4;
		gbc_label_5.gridy = 9;
		p_5.add(label_5, gbc_label_5);

		JLabel label_7 = new JLabel("                           ");
		GridBagConstraints gbc_label_7 = new GridBagConstraints();
		gbc_label_7.insets = new Insets(0, 0, 5, 5);
		gbc_label_7.gridx = 1;
		gbc_label_7.gridy = 10;
		p_5.add(label_7, gbc_label_7);

	}
}
